﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="AdminSalesCustomerReport.aspx.cs" Inherits="eStore.UI.SalesCustomerReportPage" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" EnableViewState="false" />
        <asp:Panel ID="pnl1" runat="server" CssClass="art-Post-inner panelwrapper admin">
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <div class="breadcrumbs">
                        <asp:HyperLink ID="lnkCommerceReports" runat="server" NavigateUrl="~/Admin/SalesSummary.aspx" />&nbsp;&gt;
                        <asp:HyperLink ID="lnkThisPage" runat="server" CssClass="selectedcrumb" />
                    </div>
                    <fieldset>
                        <legend>
                            <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                        </legend>
                        <mp:mojoGridView ID="grdUsers" runat="server" AllowPaging="false" AllowSorting="false"
                            AutoGenerateColumns="false" EnableTheming="false" SkinID="plain">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <a href='<%# SiteRoot + "/eStore/AdminSalesCustomerDetail.aspx?u=" + Eval("UserGuid") %>'><%# Eval("Name") %></a>
                                        <asp:HyperLink Text='<%# Resources.eStoreResources.ManageUserLink %>' ID="Hyperlink2"
                                            NavigateUrl='<%# SiteRoot + "/Admin/ManageUsers.aspx?userid=" + DataBinder.Eval(Container.DataItem,"UserID")   %>'
                                            Visible="<%# IsAdmin %>" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <a href='<%# "mailto:" + Eval("Email") %>'>
                                            <%# Eval("Email") %></a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <a href='<%# SiteRoot + "/eStore/AdminSalesCustomerDetail.aspx?u=" + Eval("UserGuid") %>'>
                                            <%# string.Format(currencyCulture, "{0:c}", Convert.ToDecimal(Eval("Revenue"))) %></a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </mp:mojoGridView>
                        <div class="modulepager">
                            <portal:mojoCutePager ID="pgrUsers" runat="server" />
                        </div>
                        <div class="cleared">
                        </div>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" EnableViewState="false" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
